package socket.util;


/**
 * class note ：
 *
 * @author liangdj
 * @version 1.0.0
 * @date 2020/4/16 11:25
 * 00AA000182400000661E
 * 00AA000134930000D7C9
 */
public class Crc {

    static {
        System.loadLibrary("crc");
    }

    /**
     * Get Crc
     * @param data data
     * @param start crc data start
     * @param len crc data end
     * @return crc code
     */
    public static native int crc(byte[] data,int start,int len) ;

    /**
     * Get Crc
     * @param data data
     * @param len crc data end
     * @return crc code
     */
    public static native int crc16(byte[] data,int len) ;



}
